import java.util.Iterator;
/**
 * Write a description of class CharIterator here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class CharIterator implements Iterator<Character>
{
    private String theString;       // declare a String to refer to the CharIterators source  
    private int cursor;             // declare an int to refer to the current position of the cursor

    // define a constructor that takes a String and initializes theString to it, and cursor to -1
    public CharIterator( String aString)
    {
        
        
    }
    
    
    /** Detects whether this iterator has completed its traversal
        and gone beyond the last entry in the collection of data.
        @return true if the iterator has another entry to return */
    public boolean hasNext(){
        return false;
    }
    
    
    /** Retrieves the next entry in the collection and
        advances this iterator by one position.
        @return a reference to the next entry in the iteration,        if one exists
        @throws NoSuchElementException if the iterator had reached the
        end already, that is, if hasNext() is false */    
    public Character next(){

        return 'x';
    }
    
    /** Removes from the collection of data the last entry that
        next() returned. A subsequent call to next() will behave
        as it would have before the removal.
        Precondition: next() has been called, and remove() has not been
        called since then. The collection has not been altered
        during the iteration except by calls to this method.
        @throws IllegalStateException if next() has not been called, or
        if remove() was called already after the last call to
        next().
        @throws UnsupportedOperationException if the iterator does
        not permit a remove operation. */
    public void remove(){

        
        
    }
    
    
    public static void main(String [] args){
        String test = "hellooooo wooorld";
  
        /**** 1) Create a CharIterator and use it in a loop to display all letters 
        //       in String test
        CharIterator ci = new CharIterator(test);
        
        
        
        
        //***************************************************************************************/
        /**** 2) Create a new CharIterator and use it to remove all letter 'o's in the 
        //      String test. Show test after your operation completes.
       
        
        
        //***************************************************************************************/ 
    
    }
    
}
